package com.youxue.teachin.youmen;

import java.util.HashMap;
import java.util.Map;

/**
 * 在此写用途
 *
 * @author: zhiwei
 * @date: 2017-10-15 22:51
 * @version: 9.1.0
 */
public class UmenEventId {
    /**
     * 成功打开webview
     */
    public static final String EVENT_WEB_OPEN = "web_open";
    /**
     * 失败打开webVeiew
     */
    public static final String EVENT_WEB_OPEN_ERROR = "web_open_error";

    public static class EventMap {
        HashMap<String, String> eventMap = new HashMap<>();

        public EventMap add(String key, String value) {
            eventMap.put(key, value);
            return this;
        }

        public EventMap add(String key, long value) {
            eventMap.put(key, String.valueOf(value));
            return this;
        }

        public EventMap add(String key, boolean value) {
            eventMap.put(key, String.valueOf(value));
            return this;
        }

        public Map<String, String> buile() {
            return eventMap;
        }
    }

}
